<?php
return [
    'LAYOUT_ON'=>true,
    'LAYOUT_NAME'=>'layout',

    //上传配置
    'UPLOAD_CONFIG' => [
        'CURRENT_METHOD' => 'local' , //当前上传的方式: local,qiniu,aliyun
        'QINIU_CONFIG' => [
            //七牛配置
            'accessKey'      => 'XjViUn14Ts5dzHJtMD0o8vFdE2iNlfX8oYsXj3G9', //七牛用户
            'secretKey'      => 'cyNowUCcyI2G703sY_42rUiM-L0YFNKX4LzwsZOR', //七牛密码
            'domain'         => 'cdn.xiyucode.com', //七牛服务器
            'bucket'         => 'xiyucode', //空间名称
            'timeout'        => 3000, //超时时间
        ],
        // 图片的配置项
        'PIC'   => [
            'exts' => ['jpg','jpeg','png','gif'], //支持的图片后缀
            'rootPathBase' => '/upload/img/',  
		    'rootPath' =>'./upload/img/',
            'maxSize'=> 1024 * 1024 * 3 , //图片最大3M
            'maxWdth' => 1920,
            'maxHeight' => 1080
        ],
        // 视频的配置项    
        'VIDEO' => [
            'exts' => ['mp4','m3u8','flv'], //支持的视频格式
            'rootPathBase' => '/upload/video/',  
		    'rootPath' =>'./upload/video/',
            'maxSize'  =>  1024 * 1024 * 200 , //视频最大200M
        ],
        // 文件的配置项
        'FILE'  => [
            'exts' => ['docs','pdf','mp3','xls', 'xlsx', 'ppt'],
            'rootPathBase' => '/upload/file/',  
		    'rootPath' =>'./upload/file/',
            'maxSize'  => 1024 * 1024 * 20 , //文件最大20M
        ]
    ],
    'DATABASE_BACKUP' => './backup/',       //数据库备份文件夹
];